package com.antball.model;

/**
 * @Auther: huangsj
 * @Date: 2019/7/18 16:21
 * @Description:
 */
public class Book {

    private String bookName;
    private Boolean isFree;

    private Author author;

    public Book(String bookName){
        this(bookName,false);
    }

    public Book(String bookName,Boolean isFree){
        this.bookName=bookName;
        this.isFree=isFree;
    }


    public String getBookName() {
        return bookName;
    }

    public Boolean getFree() {
        return isFree;
    }


    public User getAuthor() {
        return author;
    }

    public void setAuthor(Author author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookName='" + bookName + '\'' +
                ", isFree=" + isFree +
                '}';
    }



    public static void main(String[] args) {
        int a = (int) (Math.random()*70+30);
        System.out.println(a);
    }
}
